package com.liaobeicms.http.api;


import com.liaobeicms.http.bean.BaseResponse;
import com.liaobeicms.http.bean.NameAuthenBean;
import com.liaobeicms.http.bean.UploadImageBean;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

public interface ApiServer {

    @Multipart
    @POST("imapi/uploadimg")
    Observable<BaseResponse<UploadImageBean>> uploadImage(@Part List<MultipartBody.Part> parts);

//    @Multipart
//    @POST("imapi/identity/postinfo")
//    Observable<BaseResponse<String>> postAuthenData(@Part List<MultipartBody.Part> parts);

    @POST("imapi/identity/postinfo")
    Observable<BaseResponse<String>> postAuthenData(@QueryMap Map<String, String> map);

    @POST("imapi/identity/identitystatus")
    Observable<BaseResponse<NameAuthenBean>> postStatusData(@Query("uid") String uid);
}
